import request from './request'

export const list = (data) => {
  return request({
    url: '/material/list',
    method: 'POST',
    data
  })
}

export const save = (data) => {
  return request({
    url: '/material/save',
    method: 'POST',
    data
  })
}

export const saveAdd = (data) => {
  return request({
    url: '/material/saveAdd',
    method: 'POST',
    data
  })
}
export const saveList = (data) => {
  return request({
    url: '/material/saveList',
    method: 'POST',
    data
  })
}
export const modify = (data) => {
  return request({
    url: '/material/modify',
    method: 'POST',
    data
  })
}

export const remove = (id) => {
  return request({
    url: '/material/remove?ids=' + id,
    method: 'POST'
  })
}
